package org.challenge.bean;
public abstract class Vehicle {

	protected String make;
	protected String model;
	protected int year;
	protected double odometer;
	protected boolean rotatedTires;

	public Vehicle(String make, String model, int year, double odometer, boolean wornTires) {
		this.make = make;
		this.model = model;
		this.year = year;
		this.odometer = odometer;
		this.rotatedTires = wornTires;
	}	
	
	public void rotateTires() {
		this.rotatedTires = true;
		System.out.println(this.make + " " + this.model + " from " + this.year
				+ " has its tires rotated.");
	}
	
	public boolean tiresState() {
		return this.rotatedTires;
	}

}
